﻿@inherits Vowei.Web.G18nWebViewPage
@using System.Web.Mvc.Html 
@using Vowei.Web.Helpers;

@{
    ViewBag.Title = T("创建新用户组");
}

<h2>@ViewBag.Title</h2>

<form method="post" action="/Role/Create">
    <fieldset>
        <legend>@T("用户组详细信息")</legend>
            
        <div class="editor-label">
		    @T("名称")
        </div>
        <div class="editor-field">
		    <input type="text" name="RoleName" value="@ViewBag.RoleName" id="RoleName" />
        </div>

        <div class="editor-label">
		    @T("权限集")
        </div>
        <div class="editor-field">
        @{
            var psets = ViewBag.PermissionSet as Vowei.Core.Models.PermissionSet[];
        }

        @foreach (var ps in psets)
        {
            <input type="radio" id="Permission" name="Permission" 
                   value="@ps.ID" title="@ps.Title" /> @ps.Title <br />
        }             
        </div>

        <p>
            <input type="submit" value="@T("创建用户组")" />
        </p>
    </fieldset>
</form>
